Joe Huwaldt's changes:
February 5, 2025

1) Modified original shell script as follows:
* Right above where Java command is executed at bottom of script, added:

# determine the correct CPU architecture
if sysctl machdep.cpu.brand_string | grep -q Intel ; then
  ARCH=x86_64
else
  ARCH=arm64
fi
stub_logger "[ARCH] ${ARCH}"

* Modified the exec command to add:  exec arch -$ARCH 

2) Compile the universalJavaApplicationStub modified shell script into a binary executable using "compile_script.sh" which in turn requires "shc", which must be downloaded and installed separately (e.g. with homebrew), and XCode set up with whatever SDK versions you want to support (https://github.com/alexey-lysiuk/macos-sdk has a collection).

3) The resulting universalJavaApplicationStub is then copied into the project directory in "resources_macosx" and used by the ant build script.
